import json
def build_data():
    test_data = []
    file = '../DataXml/login.json'
    with open(file, encoding='utf-8') as f:
        json_data = json.load(f)
        print(json_data)
        for case_data in json_data:
            username = case_data.get("username")
            password = case_data.get("password")
            status_code = case_data.get("status_code")
            message = case_data.get("message")
            code = case_data.get("code")

            test_data.append((username, password, status_code, message, code))
            print("test_data=".format(username, password, status_code, message, code))
    return test_data